﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SunshineAirlines
{
    public partial class User_Menu : Form
    {
        public User_Menu()
        {
            InitializeComponent();
        }

        private void searchFlightsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Search_Flights f1 = new Search_Flights();
            f1.TopLevel = false;
            f1.Parent = this;
            f1.Show();
        }

        private void User_Menu_Load(object sender, EventArgs e)
        {

        }

        private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Login f1 = new Login();
            this.Hide();
            f1.Show();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
           DialogResult result = MessageBox.Show("confirm the exit","exit",MessageBoxButtons.OKCancel);
            if (result == DialogResult.OK)
            {
                this.Close();
            }
        }

        private void flightStatusToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void foodServicesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FoodServices f1 = new FoodServices();
            f1.TopLevel = false;
            f1.Parent = this;
            f1.Show();
        }
    }
}
